<template>
  <div>
    <svg-icon icon-class="password" />
    <!-- // icon-class 为 icon 的名字 -->
    <UploadExcel :on-success="handleSuccess" />
  </div>
</template>

<script>
import UploadExcel from '@/components/UploadExcel'
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: { UploadExcel },
  computed: {
    ...mapGetters([
      'name'

    ])
  },
  // mounted() {
  //   this.$store.dispatch('user/getUserInfoAction')
  // }
  methods: {
    handleSuccess({ results, header }) {
      console.log('results', results)
      console.log('header', header)
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
